using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Configuration;
using Entity;

namespace AutoGear.BLL
{
    public class GiftItem
    {
        private string _giftID;

        public string GiftID
        {
            get { return _giftID; }
            set { _giftID = value; }
        }

        private string _giftCertificateCode;

        public string GiftCertificateCode
        {
            get { return _giftCertificateCode; }
            set { _giftCertificateCode = value; }
        }


        private string _fromEmailAddress;

        public string FromEmailAddress
        {
            get { return _fromEmailAddress; }
            set { _fromEmailAddress = value; }
        }

        private string _fromName;

        public string FromName
        {
            get { return _fromName; }
            set { _fromName = value; }
        }

        private string _toEmailAddress;

        public string ToEmailAddress
        {
            get { return _toEmailAddress; }
            set { _toEmailAddress = value; }
        }

        private string _toName;

        public string ToName
        {
            get { return _toName; }
            set { _toName = value; }
        }

        private string _message;

        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        private int _quantity;

        public int Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }

        private double _unitPrice;

        public double UnitPrice
        {
            get { return _unitPrice; }
            set { _unitPrice = value; }
        }

        public double ItemTotal
        {
            get { return _quantity * UnitPrice; }
        }

        private DateTime _dateCreated;

        public DateTime DateCreated
        {
            get { return _dateCreated; }
            set { _dateCreated = value; }
        }

        private DateTime _dateExpired;

        public DateTime DateExpired
        {
            get { return _dateExpired; }
            set { _dateExpired = value; }
        }

        public GiftItem() { }

        public GiftItem(string giftId, string giftCertificateCode, 
            string fromEmailAddress, string fromName, 
            string toEmailAddress, string toName, string message,
            int quantity, double unitPrice,
            DateTime dateCreated, DateTime dateExpired)
        {
            this.GiftID = giftId;
            this.GiftCertificateCode = giftCertificateCode;
            this.FromEmailAddress = fromEmailAddress;
            this.FromName = fromName;
            this.ToEmailAddress = toEmailAddress;
            this.ToName = toName;
            this.Message = message;
            this.Quantity = quantity;
            this.UnitPrice = unitPrice;
            this.DateCreated = dateCreated;
            this.DateExpired = dateExpired;
        }

        public void Update()
        {
            throw new Exception("The method or operation is not implemented.");
        }
    }
}
